orsinium-archive / poetry-setup Goto Github PK
View Code? Open in Web Editor NEWGenerate setup.py (setuptools) from pyproject.toml (poetry)
License: Apache License 2.0
Generate setup.py (setuptools) from pyproject.toml (poetry)
License: Apache License 2.0
None of the templates seems to be included in the package.
Traceback (most recent call last):
File "/home/user/venv/bin/poetry-setup", line 9, in <module>
load_entry_point('poetry-setup==0.3.5', 'console_scripts', 'poetry-setup')()
File "/home/user/venv/lib/python3.6/site-packages/poetry_setup/core.py", line 111, in main
PoetrySetup(*argv).sync()
File "/home/user/venv/lib/python3.6/site-packages/poetry_setup/core.py", line 92, in sync
document = self.get_requirements(optional=False)
File "/home/user/venv/lib/python3.6/site-packages/poetry_setup/core.py", line 56, in get_requirements
with self.requirements_path.open(encoding='utf-8') as f:
File "/usr/lib/python3.6/pathlib.py", line 1183, in open
opener=self._opener)
File "/usr/lib/python3.6/pathlib.py", line 1037, in _opener
return self._accessor.open(self, flags, mode)
File "/usr/lib/python3.6/pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/venv/lib/python3.6/site-packages/poetry_setup/templates/requirements.txt.j2'
For example, this pyproject.toml
file generate this setup.py and this requirements.txt file. (Note the presence of black
and sphinx
in the generated files)
It would be nice to keep PyPI releases and git tags in sync :)
I want to generate requirements.txt
because I'm satisfied with the setup.py
that poetry
generates itself.
While the included templates are alright, some (private) projects have different/unique requirements on the structure of those files. It would be great if it would be possible to supply a custom template path and thus use custom templates.
Error message:
FileNotFoundError: (venv)/lib/python3.7/site-packages/poetry_setup/templates/requirements.txt.j2
when looking into my virtual environment, I find requirements.txt.j2 at
(venv)/poetry_setup/templates/requirements.txt.j2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.