Installing Setup.py not working as expected ??? or that?
So, I wrote a Python program with the following structure:
project/
| doc/
| project/
| __init__.py
| other packages
| tests
| __init__.py
| other test files
|
| AllTest.py
| README
| License
| setup.py
My file setup.py
looks like this:
from setuptools import setup, find_packages
import sys
# dependencies
INSTALL_REQUIRES = ['numpy>1.0.0',
'matplotlib',
'scipy'
]
setup(name='project',
version='0.9',
author='Some Author',
description = ("Working Project for claculating something"),
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
install_requires=INSTALL_REQUIRES,
test_suite="AllTest.py",
)
Mine AllTest.py
looks like this:
import unittest
# run all tests in current dir matching the pattern
#if __name__ == "__main__":
def additional_tests():
return unittest.TestLoader().discover('project/test', pattern='*.py')
My problem: if I run python setup.py install
in driectory I have my project and file setup.py
, a new directory is created build
with all my files. In mine \Python3.x\Lib\site-packages
only .egg
, the file .egg
has .zip
my project file .
I'm not sure if all this needs to be done, or I'm making some mistakes.
source to share
No one has answered this question yet
Check out similar questions: