Browse Source

Package etherpump with setuptools

pull/8/head
Luke Murphy 5 years ago
parent
commit
5471eabbfd
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 1
      .gitignore
  2. 1
      MANIFEST.in
  3. 4
      Makefile
  4. 11
      README.md
  5. 31
      setup.py

1
.gitignore

@ -6,3 +6,4 @@ testing/
padinfo.json padinfo.json
.etherpump .etherpump
*egg-info* *egg-info*
dist/

1
MANIFEST.in

@ -0,0 +1 @@
include etherpump/data/templates/*

4
Makefile

@ -0,0 +1,4 @@
publish:
@rm -rf dist
@python setup.py bdist_wheel
@twine upload dist/*

11
README.md

@ -35,6 +35,8 @@ Forking *etherpump* into *etherpump*. (Work in progress!)
Migrating the source code to Python 3. Migrating the source code to Python 3.
Integrate PyPi publishing with setuptools.
----- -----
**May - September 2019** **May - September 2019**
@ -115,6 +117,15 @@ For help on each individual subcommand, run:
`$ etherpump revisionscount --help` `$ etherpump revisionscount --help`
Publishing
----------
* `pip install twine`
* Bump the version number in `etherpump/__init__.py` following ["semver"](https://semver.org/) conventions
* Run `make publish`
You should have a [PyPi](https://pypi.org/) account and be added as an owner/maintainer on the [etherpump package](https://pypi.org/project/etherpump/).
License License
======= =======

31
setup.py

@ -1,19 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from etherpump import VERSION from etherpump import VERSION
from distutils.core import setup from setuptools import find_packages, setup
import os
def find(p, d):
ret = []
for b, dd, ff in os.walk(os.path.join(p, d)):
for f in ff:
if not f.startswith("."):
fp = os.path.join(b, f)
ret.append(os.path.relpath(fp, p))
ret.sort()
return ret
setup( setup(
@ -21,12 +9,17 @@ setup(
version=VERSION, version=VERSION,
author='Varia members', author='Varia members',
author_email='info@varia.zone', author_email='info@varia.zone',
packages=['etherpump', 'etherpump.commands'], packages=find_packages(),
package_dir={'etherpump': 'etherpump'}, zip_safe=False,
package_data={'etherpump': find("etherpump", "data/")}, platforms='any',
include_package_data=True,
scripts=['bin/etherpump'], scripts=['bin/etherpump'],
url='https://git.vvvvvvaria.org/varia/etherpump', url='https://git.vvvvvvaria.org/varia/etherpump',
license='LICENSE.txt', license='GPLv3',
description='Etherpump an etherpad publishing system', description='Etherpump: pumping text from etherpads into publications',
install_requires=["html5lib", "jinja2"] install_requires=["html5lib", "jinja2"],
classifiers=[
'Programming Language :: Python :: 3',
'Environment :: Console',
],
) )

Loading…
Cancel
Save