ChristopherSzczyglowski / python_package_template

Development template for Python packages
MIT License
2 stars 0 forks source link

Versioneer not found when building distributution using `python3 -m build` #1

Open ChristopherSzczyglowski opened 3 years ago

ChristopherSzczyglowski commented 3 years ago

When we try and build the package using the build module we receive the following error:

source env/bin/activate
python3 -m pip install build
python3 -m build

image

It seems like versioneer is not included in the temp environment that build creates for the purposes of building the package.

However, when we switch to using the sdist and bdist_wheel commands for setup.py we can build everything without error.

source env/bin/activate
python3 -m pip install wheel
python setup.py sdist bdist_wheel

Runs without errror

What is going on here?

ChristopherSzczyglowski commented 3 years ago

Could look into bump2version as an alternative?