Move static files into module directory
authorLowe Thiderman <redacted>
Tue, 27 May 2014 22:13:58 +0000 (00:13 +0200)
committerLowe Thiderman <redacted>
Tue, 27 May 2014 22:13:58 +0000 (00:13 +0200)
To be able to distribute the package, we need to include the static word lists
into the package module.

Also, add MANIFEST.in to tell setup.py that it's able to include the files. The
MANIFEST.in file is generic and any new added files into xkcdpass/static/ will
be added into new versions of the package.

MANIFEST.in [new file with mode: 0644]
setup.py
xkcdpass/static/2of12.txt [moved from 2of12.txt with 100% similarity]
xkcdpass/static/3esl.txt [moved from 3esl.txt with 100% similarity]

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..89bbc93
--- /dev/null
@@ -0,0 +1 @@
+include xkcdpass/static/*
index 826afd82649789bcced96818510c3c7bfdb8ad09..ecf3dbce51bb03702cea75de76ebbfacbfc3d15f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,13 +3,12 @@ from setuptools import setup
 
 setup(
     name='xkcdpass',
-    version='1.0',
+    version='1.0.0',
     author='Steven Tobin',
     author_email='steventtobin@gmail.com',
     url='https://github.com/redacted/XKCD-password-generator',
     description='Generate secure multiword passwords/passphrases, inspired by XKCD',
     long_description=open('README.mkd').read(),
-    package_dir={'': 'xkcdpass'},
     packages=['xkcdpass'],
     zip_safe=False,
     license='BSD',
similarity index 100%
rename from 2of12.txt
rename to xkcdpass/static/2of12.txt
similarity index 100%
rename from 3esl.txt
rename to xkcdpass/static/3esl.txt
git clone https://git.99rst.org/PROJECT