psychok7 / django-yadpt-starter

Yet Another Django Project Template skeleton for Django projects
MIT License
28 stars 1 forks source link

Package installer #20

Closed psychok7 closed 7 years ago

psychok7 commented 7 years ago

We should probably package the startup script file and put it on pypi since we don't really need to clone anything from the repo

https://github.com/psychok7/django-project-template-yadpt/issues/17

https://github.com/psychok7/django-project-template-yadpt/pull/19

psychok7 commented 7 years ago

https://github.com/psychok7/django-project-template-yadpt/pull/27

psychok7 commented 7 years ago

https://packaging.python.org/distributing/#packaging-your-project https://packaging.python.org/distributing/#uploading-your-project-to-pypi https://docs.djangoproject.com/en/1.10/intro/reusable-apps/ http://peterdowns.com/posts/first-time-with-pypi.html

python setup.py sdist bdist_wheel --universal
twine register dist/my_pkg.whl -r pypi # or -r pypitest
twine upload dist/* -r pypi # or -r pypitest
psychok7 commented 7 years ago

https://pypi.python.org/pypi/django-yadpt-starter

psychok7 commented 7 years ago

@pslobo please test this

pslobo commented 7 years ago

We need to update the readme and fix a typo:

pip install django-yadtp-starter => pip install django-yadpt-starter

psychok7 commented 7 years ago

@pslobo this should be working now. please test it again in all environments if possible. i fixed the readme as well with

pip install django-yadpt-starter
django-yadpt-starter.py -e ENVIRONMENT PROJECT_NAME
psychok7 commented 7 years ago

@pslobo please test the current master with the new changes i made to see if the https issue is solved in the production environment.

To test before i release a new pypi update:

git pull origin master
# Create the package locally
python setup.py sdist bdist_wheel --universal
# Install using pip locally inside your virtualenv. Go to the root of your project and 
pip install dist/django-yadpt-starter-1.2.tar.gz

Let me know how it goes so i can release a new update to pypi

psychok7 commented 7 years ago

@pslobo i ended up releasing to pip but please test it when you can directly pip install django-yadpt-starter

pslobo commented 7 years ago

I will test this as soon as possible, it's going to be a crazy few days ;)

Nuno Khan mailto:notifications@github.com 3 January 2017 at 11:10

@pslobo https://github.com/pslobo i ended up releasing to pip but please test it when you can directly |pip install django-yadpt-starter|

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/psychok7/django-yadpt-starter/issues/20#issuecomment-270092975, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYoP2pYMTldGbX89DFSA9g4COd89cluks5rOiyXgaJpZM4KU4dJ.

Cheers, Pedro Lobo

psychok7 commented 6 years ago

Pypi was updated: https://packaging.python.org/guides/migrating-to-pypi-org/#uploading.

now we just need to:

twine upload dist/* -r pypi no need to register first anymore