Pipenv integration for setuptools.
pipenv install pipenv-publisher
pipenv install https://github.com/kpostekk/pipenv-publisher.git#egg=publisher
pipenv-pub setuptools setup
That will copy ✨special✨ setup.py
in your project directory, add missing declarations to the Pipfile
and do lock.
After this, remember to update package's meta in Pipfile!
pipenv-pub stamp . # or pipenv run stamp
You can replace dot with package name
Remember to add this into your __init__.py
from mypkg._version import __version__, __author__
Tip: in PyCharm you can enable file watcher to automate this task.
pipenv-pub setuptools lock # or pipenv run pub setuptools lock
- Where I should define all setuptools's stuff?
- In
setup
section of pipfile
- In
- How about my
README.md
orREADME.rst
, where I should declare it?- Nowhere! It's magiaclly detected and added to setuptools.
- What is
setup-lock.json
- This a file with, peresistent lock of section
setup
from Pipfile. It has all configuration forsetup.py
, includinginstall_requires
. It shouldn't be in.gitignore
- This a file with, peresistent lock of section
- Can I still use
setup.cfg
- Yes.
- Why does it exist?
- Because I can and there isn't any good tool to integrate
setuptools
andPipenv
.
- Because I can and there isn't any good tool to integrate
- Examples?
- This repo is an example lmao.