Skip to content

Commit

Permalink
first attempt at repository publish
Browse files Browse the repository at this point in the history
  • Loading branch information
velis74 committed Oct 16, 2023
1 parent 639645d commit 478b9a5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Django project base

A collection of functionalities that are common to most projects we do.

- account management
- project management
- notifications (both to users and to apps)
- tagging
- background job processing
- roles & permissions
- profiling

This project is in VERY early development stage. Some of the functionalities are not even developed yet, some need
major rework, but some, surprisingly, should work pretty well already. An example of pretty well functioning ones is
account management.

## Example project

For running example django project prepare python environment and run (run in repository root):
Expand Down
2 changes: 1 addition & 1 deletion django_project_base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "django project base"
__version__ = "0.3.100"
__version__ = "{version-string}"
__author__ = "Jure Erznožnik"
__email__ = "jure.erznoznik@gmail.com"
__license__ = "BSD 3-Clause"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "django_project_base",
"version": "0.3.100",
"name": "@velis/django_project_base",
"version": "{version-string}",
"private": true,
"files": [
"dist/*"
Expand Down
16 changes: 6 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ def get_version(version_arg):
write_ver_to_init("package.json", version_str, '"version": ', ' "version": "%s",\n')

os.system("npm run build")
if publish_local:
os.system("npm pack")
os.system("cp django_project_base-*.tgz ~/velis_nextcloud")
os.system("mv django_project_base-*.tgz ~/Projects/alc/node_libs")
else:
os.system("cd vue/dynamicforms && npm publish && cd ../..")
os.system("python setup.py sdist bdist_wheel")
# if you don't like to enter username / pass for pypi every time, run this command:
# keyring set https://upload.pypi.org/legacy/ username (it will ask for password)
os.system("twine upload dist/*")

os.system("npm publish")
os.system("python setup.py sdist bdist_wheel")
# if you don't like to enter username / pass for pypi every time, run this command:
# keyring set https://upload.pypi.org/legacy/ username (it will ask for password)
os.system("twine upload dist/*")

os.system("rm -rf build && rm -rf dist && rm -rf django_project_base.egg-info")
os.system("git checkout django_project_base/__init__.py")
Expand Down

0 comments on commit 478b9a5

Please sign in to comment.