def usage_statistics_string(): """ For Eggs development, it is helpful to know which versions of Django and Python are in use, and which can be safely deprecated or removed. If tracking is enabled, this function builds a query string with that information. It is used in dashboard/layout.html with an invisible tracker pixel. If tracking is disabled, the tracker pixel does not get requested and no information is collected. """ if getattr(settings, 'EGGS_TRACKING', True): query_str = 'django={django_ver}&python={python_ver}&oscar={oscar_ver}'.format( django_ver=django.get_version(), python_ver=platform.python_version(), oscar_ver=oscar.get_version(), ) return mark_safe(query_str) else: return None
def usage_statistics_string(): """ For Oscar development, it is helpful to know which versions of Oscar, Django and Python are in use, and which can be safely deprecated or removed. If tracking is enabled, this function builds a query string with that information. It is used in dashboard/layout.html with an invisible tracker pixel. If you're developing locally or tracking is disabled, the tracker pixel does not get rendered and no information is collected. """ if not settings.DEBUG and getattr(settings, 'OSCAR_TRACKING', True): params = { 'django': django.get_version(), 'python': platform.python_version(), 'oscar': oscar.get_version(), } return mark_safe(parse.urlencode(params)) else: return None
'pytest-xdist>=2.2,<3', 'tox>=3.21,<4', 'freezegun>=1.1,<2', sorl_thumbnail_version, easy_thumbnails_version, ] with open(os.path.join(PROJECT_DIR, 'README.rst')) as fh: long_description = re.sub('^.. start-no-pypi.*^.. end-no-pypi', '', fh.read(), flags=re.M | re.S) setup( name='django-oscar', version=get_version(), url='https://github.com/django-oscar/django-oscar', author="David Winterbottom", author_email="*****@*****.**", description="A domain-driven e-commerce framework for Django", long_description=long_description, keywords="E-commerce, Django, domain-driven", license='BSD', platforms=['linux'], package_dir={'': 'src'}, packages=find_packages('src'), include_package_data=True, python_requires='>=3.7', install_requires=install_requires, extras_require={ 'docs': docs_requires,
- Ensure the version is correctly set in oscar.__init__.py - Run: python setup.py sdist upload """ from setuptools import setup, find_packages import os import sys PROJECT_DIR = os.path.dirname(__file__) PY3 = sys.version_info >= (3, 0) sys.path.append(os.path.join(PROJECT_DIR, 'src')) from oscar import get_version setup( name='django-oscar', version=get_version().replace(' ', '-'), url='https://github.com/django-oscar/django-oscar', author="David Winterbottom", author_email="*****@*****.**", description="A domain-driven e-commerce framework for Django", long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(), keywords="E-commerce, Django, domain-driven", license='BSD', platforms=['linux'], package_dir={'': 'src'}, packages=find_packages('src'), include_package_data=True, install_requires=[ 'django>=1.6.8,<1.8', # PIL is required for image fields, Pillow is the "friendly" PIL fork 'pillow>=1.7.8,<=2.7',
""" from setuptools import setup, find_packages import os from oscar import get_version PROJECT_DIR = os.path.dirname(__file__) # Change to the current directory to solve an issue installing Oscar on the Vagrant machine. if PROJECT_DIR: os.chdir(PROJECT_DIR) setup( name="django-oscar", version=get_version().replace(" ", "-"), url="https://github.com/tangentlabs/django-oscar", author="David Winterbottom", author_email="*****@*****.**", description="A domain-driven e-commerce framework for Django", long_description=open(os.path.join(PROJECT_DIR, "README.rst")).read(), keywords="E-commerce, Django, domain-driven", license="BSD", platforms=["linux"], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ "django>=1.4", "PIL==1.1.7", "South>=0.7.6", "django-extra-views>=0.2,<0.6",
To release a new version to PyPi: - Ensure the version is correctly set in oscar.__init__.py - Run: python setup.py sdist upload """ from setuptools import setup, find_packages import os import sys PROJECT_DIR = os.path.dirname(__file__) PY3 = sys.version_info >= (3, 0) sys.path.append(os.path.join(PROJECT_DIR, 'src')) from oscar import get_version setup(name='django-oscar', version=get_version().replace(' ', '-'), url='https://github.com/django-oscar/django-oscar', author="David Winterbottom", author_email="*****@*****.**", description="A domain-driven e-commerce framework for Django", long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(), keywords="E-commerce, Django, domain-driven", license='BSD', platforms=['linux'], package_dir={'': 'src'}, packages=find_packages('src'), include_package_data=True, install_requires=[ 'django>=1.7.8,<1.9', # PIL is required for image fields, Pillow is the "friendly" PIL fork 'pillow>=1.7.8,<=2.7',
# The master toctree document. master_doc = "index" # General information about the project. project = u"django-oscar" copyright = u"Tangent Labs" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. from oscar import get_version, get_short_version version = get_version() release = get_short_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: # today = '' # Else, today_fmt is used as the format for a strftime call. # today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ["_draft"]
from setuptools import setup, find_packages import os import sys from oscar import get_version PROJECT_DIR = os.path.dirname(__file__) # Change to the current directory to solve an issue installing Oscar on the # Vagrant machine. if PROJECT_DIR: os.chdir(PROJECT_DIR) setup(name='django-oscar', version=get_version().replace(' ', '-') + '-pozytywnie_21_05_2013-multisite2', url='https://github.com/tangentlabs/django-oscar', author="David Winterbottom", author_email="*****@*****.**", description="A domain-driven e-commerce framework for Django", long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(), keywords="E-commerce, Django, domain-driven", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'django>=1.4,<1.5', # PIL is required for image fields, Pillow is the "friendly" PIL fork 'pillow>=1.7.8,<2.0.0', # Oscar ships with migraations
#!/usr/bin/env python from setuptools import setup, find_packages from paypal import VERSION MIN_OSCAR_VERSION = (0, 4) try: import oscar except ImportError: # Oscar not installed pass else: # Oscar is installed, assert version is up-to-date if oscar.VERSION < MIN_OSCAR_VERSION: raise ValueError("Oscar>%s required, current version: %s" % (".".join(MIN_OSCAR_VERSION), oscar.get_version())) setup( name='django-oscar-paypal', version=VERSION, url='https://github.com/tangentlabs/django-oscar-paypal', author="David Winterbottom", author_email="*****@*****.**", description="PayPal payment module for django-oscar", long_description=open('README.rst').read(), keywords="Payment, PayPal, Oscar", license=open('LICENSE').read(), platforms=['linux'], packages=find_packages(exclude=['sandbox*', 'tests*']), include_package_data=True, # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
from paypal import VERSION MIN_OSCAR_VERSION = (0, 6) try: import oscar except ImportError: # Oscar not installed pass else: # Oscar is installed, assert version is up-to-date if oscar.VERSION < MIN_OSCAR_VERSION: raise ValueError( "Oscar>%s required, current version: %s" % ( ".".join(MIN_OSCAR_VERSION), oscar.get_version())) setup(name='django-oscar-paypal', version=VERSION, url='https://github.com/tangentlabs/django-oscar-paypal', author="David Winterbottom", author_email="*****@*****.**", description="PayPal payment module for django-oscar", long_description=open('README.rst').read(), keywords="Payment, PayPal, Oscar", license=open('LICENSE').read(), platforms=['linux'], packages=find_packages(exclude=['sandbox*', 'tests*']), include_package_data=True, # See http://pypi.python.org/pypi?%3Aaction=list_classifiers