From b7ef6dbf656a5fd94ebacf479aedf875b7510100 Mon Sep 17 00:00:00 2001 From: AndreasBurbach <aburbach@compeon.de> Date: Mon, 15 Nov 2021 13:57:25 +0100 Subject: [PATCH] prepare for pypi --- .gitignore | 10 ++++------ the_social_network/LICENSE | 27 +++++++++++++++++++++++++++ the_social_network/MANIFEST.in | 7 +++++++ the_social_network/README.rst | 9 +++++++++ the_social_network/setup.cfg | 24 ++++++++++++++++++++++++ the_social_network/setup.py | 3 +++ 6 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 the_social_network/LICENSE create mode 100644 the_social_network/MANIFEST.in create mode 100644 the_social_network/README.rst create mode 100644 the_social_network/setup.cfg create mode 100644 the_social_network/setup.py diff --git a/.gitignore b/.gitignore index 5f9bb7d..af11019 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,8 @@ -.idea/ .DS_Store *.sqlite3 __pycache__ # dependencies -*/node_modules -/.pnp -.pnp.js # testing /coverage @@ -22,12 +18,14 @@ __pycache__ .env.production.local .env -npm-debug.log* yarn-debug.log* yarn-error.log* *.eslintcache */media/account/images/ -solar/django_static +the_social_network/django_static pypi/*/ + +the_social_network/dist +the_social_network/the_social_network.egg-info \ No newline at end of file diff --git a/the_social_network/LICENSE b/the_social_network/LICENSE new file mode 100644 index 0000000..244da3c --- /dev/null +++ b/the_social_network/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2021, Marc Feger +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by the <organization>. +4. Neither the name of the <organization> nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ''AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/the_social_network/MANIFEST.in b/the_social_network/MANIFEST.in new file mode 100644 index 0000000..5b2510b --- /dev/null +++ b/the_social_network/MANIFEST.in @@ -0,0 +1,7 @@ +include LICENSE +include README.rst +include core/* +exclude the_social_network/* +exclude setup.cfg +exclude MANIFEST.in +exclude manage.py \ No newline at end of file diff --git a/the_social_network/README.rst b/the_social_network/README.rst new file mode 100644 index 0000000..21c7ed7 --- /dev/null +++ b/the_social_network/README.rst @@ -0,0 +1,9 @@ +============ +The Social Network +============ + +The package "The Social Network" is a django base backend core element for any possible social network you can think of. + +It contains the following models + +Django.Authentication.User diff --git a/the_social_network/setup.cfg b/the_social_network/setup.cfg new file mode 100644 index 0000000..578367d --- /dev/null +++ b/the_social_network/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = the-social-network +version = 0.1 +description = Basic core of all social network backends +long_description = file: README.rst +url = https://www.example.com/ +author = Marc Feger +author_email = marc.feger@uni-duesseldorf.de +license = BSD-4-Clause +classifiers = + Environment :: Web Environment + Framework :: Django + Framework :: Django :: 3.1.2 # Replace "X.Y" as appropriate + Intended Audience :: Developers + License :: OSI Approved :: BSD License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3.9 + Topic :: Internet :: WWW/HTTP + Topic :: Internet :: WWW/HTTP :: Dynamic Content + +[options] +include_package_data = true +packages = find: \ No newline at end of file diff --git a/the_social_network/setup.py b/the_social_network/setup.py new file mode 100644 index 0000000..fc1f76c --- /dev/null +++ b/the_social_network/setup.py @@ -0,0 +1,3 @@ +from setuptools import setup + +setup() \ No newline at end of file -- GitLab