Browse Source

Clean up setuptools file

pull/8/head
Luke Murphy 5 years ago
parent
commit
889987cdc9
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 15
      setup.py

15
setup.py

@ -1,21 +1,20 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import distutils.command.install_lib
from distutils.core import setup from distutils.core import setup
import os import os
def find (p, d):
def find(p, d):
ret = [] ret = []
for b, dd, ff in os.walk(os.path.join(p, d)): for b, dd, ff in os.walk(os.path.join(p, d)):
for f in ff: for f in ff:
if not f.startswith("."): if not f.startswith("."):
fp = os.path.join(b, f) fp = os.path.join(b, f)
ret.append(os.path.relpath(fp, p)) ret.append(os.path.relpath(fp, p))
ret.sort() ret.sort()
# for x in ret[:10]:
# print "**", x
return ret return ret
setup( setup(
name='etherpump', name='etherpump',
version='0.0.1', version='0.0.1',
@ -23,14 +22,10 @@ setup(
author_email='info@varia.zone', author_email='info@varia.zone',
packages=['etherpump', 'etherpump.commands'], packages=['etherpump', 'etherpump.commands'],
package_dir={'etherpump': 'etherpump'}, package_dir={'etherpump': 'etherpump'},
#package_data={'activearchives': find("activearchives", "templates/") + find("activearchives", "data/")},
package_data={'etherpump': find("etherpump", "data/")}, package_data={'etherpump': find("etherpump", "data/")},
scripts=['bin/etherpump'], scripts=['bin/etherpump'],
url='https://git.vvvvvvaria.org/varia/etherpump', url='https://git.vvvvvvaria.org/varia/etherpump',
license='LICENSE.txt', license='LICENSE.txt',
description='Etherpump an etherpad publishing system', description='Etherpump an etherpad publishing system',
# long_description=open('README.md').read(), install_requires=["html5lib", "jinja2"]
install_requires=[
"html5lib", "jinja2"
]
) )

Loading…
Cancel
Save