Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

referencing code from the package inside setup.py is not allowed. #26

Merged
merged 1 commit into from Mar 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions purl/__init__.py
@@ -1,6 +1,4 @@
from .url import URL # noqa
from .template import expand, Template # noqa

__version__ = '1.2'

__all__ = ['URL', 'expand', 'Template']
13 changes: 1 addition & 12 deletions setup.py
@@ -1,20 +1,9 @@
#!/usr/bin/env python
from setuptools import setup, find_packages
import sys

from purl import __version__

# Python 2/3 compatibility
if sys.version_info[0] == 3:
def as_bytes(s):
return s
else:
def as_bytes(s):
return s.encode('utf8')

setup(
name='purl',
version=as_bytes(__version__),
version='1.2',
description=(
"An immutable URL class for easy URL-building and manipulation"),
long_description=open('README.rst').read(),
Expand Down