Skip to content

Latest commit

 

History

History
63 lines (57 loc) · 1.61 KB

pypi-release-checklist.md

File metadata and controls

63 lines (57 loc) · 1.61 KB
  • Update HISTORY
  • Update README and check formatting with http://rst.ninjs.org/
  • Make sure any new files are included in MANIFEST.in
  • Update version number in explorer/__init__.py
  • Update any package dependencies in setup.py
  • Commit the changes:
git add .
git commit -m "Release 1.0.0"
git tag -a "1.0.0"
git push
git push --tags
  • Be sure to test the built JS source by running npm run build and setting VITE_DEV_MODE = False in settings.py

  • Build & test the source distribution:

python setup.py build
mktmpenv
cd django-sql-explorer
cd dist
tar xzvf django-sql-explorer-x.x.tar.gz
cd django-sql-explorer-x.x/
python setup.py install
python -m django startproject explorertest
cd explorertest/explorertest/
emacs urls.py
>> from django.urls import path, include
>> path('explorer/', include('explorer.urls')),
emacs settings.py
>> add 'explorer' to installed apps
>> EXPLORER_CONNECTIONS = {'Default': 'default'}
>> EXPLORER_DEFAULT_CONNECTION = 'default'
cd..
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
>> log in and try it! http://127.0.0.1:8000/explorer/
deactivate
  • Release on PyPI:
python setup.py release
  • Test that it pip installs:
mktmpenv
pip install my_project
deactivate
  • Tag the last git commit with the version number:
python setup.py tag

Put the same message as in HISTORY.rst.