Bemmu / PyNamecheap

Namecheap API client in Python.
MIT License
197 stars 69 forks source link

Add setup.py to install from pip #11

Closed iturdikulov closed 7 years ago

iturdikulov commented 7 years ago

Hi, I use pip to install packages, this line in requirements.txt worked for me (when I added setup.py, as base I used file from namesilo package).:

git+git://github.com/inomoz/PyNamecheap.git@master#egg=namecheap

You can also submit a package to PyPI. http://peterdowns.com/posts/first-time-with-pypi.html

P.S. this PR not tested completely.

agrrh commented 7 years ago

Sorry for first two comments on name and URL, I started at the wrong end. :)

I'd say module should be named as "PyNamecheap", what do you think?

iturdikulov commented 7 years ago

I renamed module in setup.py name='PyNamecheap', .

py_modules=['namecheap'], here can't because (from python docs):

default package/directory layout implies that these module can be found in mod1.py (namecheap.py)

agrrh commented 7 years ago

Looks like it's all OK, many thanks!

https://pypi.python.org/pypi/PyNamecheap