If I tried pip3 install git+https://user_n...@bitbucket.org/user_name/project_name.git
the package would get installed, but there are no python files that have been installed in /usr/local/lib/python3.5/dist-packages/project_name Hence I couldn't import any class in the package in python. I am wondering how to fix this. On 20 March 2017 at 16:37, Daiyue Weng <daiyuew...@gmail.com> wrote: > I have been Python Packaging User Guide <https://packaging.python.org/>, > and I created a setup.py in my PyCharm project root, > > from setuptools import setup, find_packages > from os import path > > here = path.abspath(path.dirname(__file__)) > > packages = find_packages(exclude=['contrib', 'docs', 'tests*']) > > setup( > name='lumar_stackdriver_logging', > > description='A sample Python project', > > > author='project_dev', > author_email='pypa-...@googlegroups.com', > > > # Choose your license > license='GNU GPL', > > # See https://pypi.python.org/pypi?%3Aaction=list_classifiers > classifiers=[ > # How mature is this project? Common values are > # 3 - Alpha > # 4 - Beta > # 5 - Production/Stable > 'Development Status :: 3 - Alpha', > > # Indicate who your project is intended for > 'Intended Audience :: Project Developers', > 'Topic :: System :: Logging', > > # Pick your license as you wish (should match "license" above) > 'License :: OSI Approved :: GNU General Public License (GPL)', > > # Specify the Python versions you support here. In particular, ensure > # that you indicate whether you support Python 2, Python 3 or both. > # 'Programming Language :: Python :: 3', > # 'Programming Language :: Python :: 3.2', > # 'Programming Language :: Python :: 3.3', > # 'Programming Language :: Python :: 3.4', > 'Programming Language :: Python :: 3.5', > ], > > # What does your project relate to? > keywords='sample setuptools development', > > > # You can just specify the packages manually here if your project is > # simple. Or you can use find_packages(). > packages=packages, > ) > > > I uploaded/committed the project into a Git repo/BitBucket, what I want is > anyone who can access the repo, can deploy the project from the repo to their > machines using pip. > > I am wondering how to achieve that? > > > Many thanks > > > On 20 March 2017 at 11:57, Daiyue Weng <daiyuew...@gmail.com> wrote: > >> thanks, i am reading it. >> >> On 20 March 2017 at 11:50, Glenn Hutchings <zond...@gmail.com> wrote: >> >>> On Monday, 20 March 2017 11:36:34 UTC, Daiyue Weng wrote: >>> > Hi, I using Python 3.5.2 on Linux Mint 18.1, and I am wondering how to >>> > package my PyCharm Python project as a module so that it can installed >>> by >>> > someone else by using pip. Like what tools and script I need to use or >>> > write in order to do that. >>> >>> A good place to start is https://packaging.python.org. >>> -- >>> https://mail.python.org/mailman/listinfo/python-list >>> >> >> > -- https://mail.python.org/mailman/listinfo/python-list