Comments (2)
At the moment the version is set using this setuptools command:
python setup.py setopt --command=metadata --option=version --set-value=ReleaseVersion
I didn't knew that setuptools restructures setup.cfg
.
I guess the command parses the whole file, then changes the value and creates a new setup.cfg
with the new values.
I see two options, how you could fix this problem:
- exclude the file from your linter
- rewrite
setReleaseVersion
(lib/prepare.js:5)
I would prefer the first option.
from semantic-release-pypi.
At the moment the version is set using this setuptools command:
python setup.py setopt --command=metadata --option=version --set-value=ReleaseVersion
I didn't knew that setuptools restructures
setup.cfg
. I guess the command parses the whole file, then changes the value and creates a newsetup.cfg
with the new values.I see two options, how you could fix this problem:
- exclude the file from your linter
- rewrite
setReleaseVersion
(lib/prepare.js:5)I would prefer the first option.
Thanks @abichinger, I think I will exclude setup.cfg from the linter for now.
from semantic-release-pypi.
Related Issues (16)
- convert semver to pep440 version HOT 1
- feat: add option to avoid publishing, only update version in setup.cfg
- bug: version check too broad HOT 1
- workflow: How to get release tag on same commit as updating setup.cfg version HOT 4
- assert repository access in verify HOT 1
- Reading package version from metadata HOT 1
- pyproject.toml HOT 2
- Error: version in ./setup.py HOT 8
- `Error: invalid command name 'setup.py'` HOT 2
- test publish using TestPyPI HOT 1
- verify if function setReleaseVersion affects version
- feat: add log messages HOT 1
- add keywords to package.json
- Error: socket hang up HOT 2
- feat: redirect stdout and stderr of child processes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semantic-release-pypi.