Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve setup.py #23

Merged
merged 1 commit into from May 5, 2017
Merged

Improve setup.py #23

merged 1 commit into from May 5, 2017

Conversation

ghost
Copy link

@ghost ghost commented May 5, 2017

I propose to change the way of getting version number and doc string in setup.py, that we do not have to import init.py to setup.py.

In my fork, I create the way of getting version number without import another files of googletrans library. I open init.py file read it and get version and doc string with regex.
This method is used by many big libraries, ex. django-rest-framework.

@ssut please consider this solution, because it can help many people.

* Now setup.py don't import googletrans.__init__.py wchich import requests, and this occure ImportError during installation of library.
* Changes with getting version in setup.py without importing googletrans.__init__.py

Now you can install py-googletrans on clean virtualenv, without earlier install dependencies.
@coveralls
Copy link

coveralls commented May 5, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 59f2bb2 on mariusz-korzekwa:improve_setup_py into ae4953d on ssut:master.

@ghost ghost mentioned this pull request May 5, 2017
@ssut
Copy link
Owner

ssut commented May 5, 2017

I'm really sorry that I didn't catch this before. I'm going to merge this, and I really appreciate your work. Thanks!

@ssut ssut merged commit b670db3 into ssut:master May 5, 2017
@ghost
Copy link
Author

ghost commented May 5, 2017

@ssut Thank you very much. Can you please also bump version? Because pip will be cached 2.1.2

@ssut
Copy link
Owner

ssut commented May 5, 2017

@mariusz-korzekwa Yes sure, just give me a few moments, I'll bump a new version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants