setup.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import os
  2. from setuptools import setup, find_packages
  3. # Utility function to read the README file.
  4. # Used for the long_description. It's nice, because now 1) we have a top level
  5. # README file and 2) it's easier to type in the README file than to put a raw
  6. # string in below ...
  7. def read(fname):
  8. return open(os.path.join(os.path.dirname(__file__), fname)).read()
  9. links = []
  10. required = []
  11. with open('./requirements.txt') as f:
  12. for line in f:
  13. if "git" in line:
  14. links.append(line)
  15. else:
  16. required.append(line)
  17. print("we are building ", links, required)
  18. def __path(filename):
  19. return os.path.join(os.path.dirname(__file__), filename)
  20. version = "0.0.1"
  21. print(version)
  22. try:
  23. version = read("./VERSION").strip()
  24. except:
  25. pass
  26. setup(
  27. name="MessageCorps",
  28. version=version,
  29. author="Bryn Mathias",
  30. author_email="brynmathias@gmail.com",
  31. description=(""),
  32. license="BSD",
  33. packages=find_packages(),
  34. install_requires=required,
  35. dependency_links=links,
  36. long_description=read('README.md'),
  37. classifiers=[
  38. "Development Status :: 3 - Alpha",
  39. "Topic :: Utilities"
  40. ],
  41. )