mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Fix package python sdist for pypi (#1796)
This commit is contained in:
parent
d2078e2a54
commit
805f5aea62
2 changed files with 6 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
include README.md
|
||||
include requirements.txt
|
||||
graft squeaknode/admin/webapp/templates
|
||||
graft squeaknode/admin/webapp/static
|
||||
include squeaknode/db/alembic.ini
|
||||
|
|
|
|||
5
setup.py
5
setup.py
|
|
@ -35,6 +35,10 @@ from setuptools import setup
|
|||
from squeaknode import __version__
|
||||
|
||||
|
||||
with open("requirements.txt") as f:
|
||||
requirements = [r for r in f.read().split("\n") if len(r)]
|
||||
|
||||
|
||||
class BuildPyCommand(setuptools.command.build_py.build_py):
|
||||
"""Custom build command."""
|
||||
|
||||
|
|
@ -97,6 +101,7 @@ setup(
|
|||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=requirements,
|
||||
extras_require={
|
||||
"test": ["pytest", "coverage"],
|
||||
"postgres": ["psycopg2"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue