$NetBSD: patch-feed2exec_____init____.py,v 1.1 2020/01/29 16:48:48 schmonz Exp $

Avoid setuptools_scm since tarball has no .git.

--- feed2exec/__init__.py.orig	2019-02-26 22:03:32.000000000 +0000
+++ feed2exec/__init__.py
@@ -2,17 +2,8 @@
 
 from __future__ import print_function, absolute_import
 
-try:
-    from ._version import version
-except ImportError:  # pragma: nocover
-    try:
-        from setuptools_scm import get_version
-        version = get_version()
-    except (ImportError, LookupError):
-        version = '???'
-
 __description__ = 'The programmable feed reader'
-__version__ = version
+__version__ = '@PKGVERSION_NOREV@'
 __website__ = 'https://feed2exec.readthedocs.io/'
 __prog__ = 'feed2exec'
 __author__ = u'Antoine Beaupré'
Example #2
0
from setuptools import setup, find_packages
from zoom-cli.core.version import get_version

VERSION = get_version()

f = open('README.md', 'r')
LONG_DESCRIPTION = f.read()
f.close()

setup(
    name='zoom-cli',
    version=VERSION,
    description='CLI-wrapper around the Zoom API',
    long_description=LONG_DESCRIPTION,
    long_description_content_type='text/markdown',
    author='Michael Brauweiler',
    author_email='*****@*****.**',
    url='https://github.com/rattletat/zoom-cli',
    license='UNLICENSE',
    packages=find_packages(exclude=['ez_setup', 'tests*']),
    package_data={'zoom-cli': ['templates/*']},
    include_package_data=True,
    entry_points="""
        [console_scripts]
        zoom-cli = zoom-cli.main:main
    """,
)
Example #3
0
copyright = '2013, Department of Parks and Wildlife'

# 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.
version = '0.9.1-alpha'
# The full version, including alpha/beta/rc tags.
try:
    from {{ project_name }} import VERSION, get_version
except ImportError:
    release = version
else:
    def {{ project_name }}_release():
        pep386ver = get_version()
        if VERSION[3:5] == ('alpha', 0) and 'dev' not in pep386ver:
            return pep386ver + 'dev'
        return pep386ver

    release = {{ project_name }}_release()
    version = get_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.
Example #4
0
from geonode import __file__ as geonode_path
from {{ project_name }} import get_version
from {{ project_name }}.celeryapp import app  # flake8: noqa
import djcelery
import dj_database_url

def str2bool(v):
        return v.lower() in ("yes", "true", "t", "1")


#
# General Django development settings
#
# GeoNode Version

VERSION = get_version()

# Defines the directory that contains the settings file as the PROJECT_ROOT
# It is used for relative settings elsewhere.
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
GEONODE_ROOT = os.path.abspath(os.path.dirname(geonode_path))

# Setting debug to true makes Django serve static media and
# present pretty error pages.
DEBUG = str2bool(os.getenv('DEBUG', 'True'))

# Set to True to load non-minified versions of (static) client dependencies
# Requires to set-up Node and tools that are required for static development
# otherwise it will raise errors for the missing non-minified dependencies
DEBUG_STATIC = str2bool(os.getenv('DEBUG_STATIC', 'False'))