Import python modules by their hash.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

35 rader
893 B

  1. #!/usr/bin/env python
  2. def getversion(fname):
  3. with open(fname) as fp:
  4. v = [ x for x in fp.readlines() if x.startswith('__version__') ]
  5. if len(v) != 1:
  6. raise ValueError('too many lines start with __version__')
  7. return v[0].split("'")[1]
  8. from setuptools import setup
  9. import os.path
  10. __version__ = getversion(os.path.join('casimport', '__init__.py'))
  11. setup(name='casimport',
  12. version=__version__,
  13. description='Import python modules via content address.',
  14. author='John-Mark Gurney',
  15. author_email='jmg@funkthat.com',
  16. classifiers=[
  17. 'Development Status :: 3 - Alpha',
  18. 'License :: OSI Approved :: BSD License',
  19. 'Topic :: Security',
  20. # XXX - add
  21. ],
  22. url='https://www.funkthat.com/gitea/jmg/casimport',
  23. packages=[ 'casimport', ],
  24. install_requires=[
  25. 'mock',
  26. ],
  27. extras_require = {
  28. 'dev': [ 'coverage' ],
  29. }
  30. )