Skip to content

Commit

Permalink
Help cut down on junk sublime plugin files
Browse files Browse the repository at this point in the history
  • Loading branch information
adambullmer committed May 4, 2016
1 parent fdd95ab commit ffd93ed
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
#!/usr/bin/env python
import logging
from pkg_resources import Requirement
from setuptools import setup, find_packages
if __name__ == '__main__':
import logging
from pkg_resources import Requirement
from setuptools import setup, find_packages

log = logging.getLogger(__name__)
log = logging.getLogger(__name__)

with open('requirements.txt') as f:
REQUIREMENTS = []
for req in f.readlines():
req = req.strip()
try:
Requirement.parse(req)
except:
log.warning('failed to parse `{0}` from requirements.txt, skipping\n'.format(req))
continue
if len(req) is 0:
continue
REQUIREMENTS.append(req)
with open('requirements.txt') as f:
REQUIREMENTS = []
for req in f.readlines():
req = req.strip()
try:
Requirement.parse(req)
except:
log.warning('failed to parse `{0}` from requirements.txt, skipping\n'.format(req))
continue
if len(req) is 0:
continue
REQUIREMENTS.append(req)


setup(
name='Sublime Text Ansible Vault',
version='1.0.0',
description='',
author='Adam Bullmer',
author_email='[email protected]',
url='https://github.com/rewardStyle/sublime_ansible_vault',
packages=find_packages(),
include_package_data=True,
install_requires=REQUIREMENTS,
zip_safe=False,
)
setup(
name='Sublime Text Ansible Vault',
version='1.0.1',
description='',
author='Adam Bullmer',
author_email='[email protected]',
url='https://github.com/rewardStyle/sublime_ansible_vault',
packages=find_packages(),
include_package_data=True,
install_requires=REQUIREMENTS,
zip_safe=False,
)

0 comments on commit ffd93ed

Please sign in to comment.