Metadata-Version: 2.1
Name: pip2spack
Version: 0.2.2
Summary: Automatically create and update a spack package base on the pypi.org information
Home-page: https://github.com/NexSabre/pip2spack
Author: Nex Sabre
Author-email: nexsabre@protonmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.22.0)
Requires-Dist: jinja2 (~=2.11.0)

# pip2Spack

Automatically create and update a spack package base on the pypi.org information.

Cons
 - Faster create than builtin into option `spack create`
 - Update existing package without PR into spack's repository


## TL;DR
```
// install 
pip install pip2spack 

// create new one
pip2spack jsl

// update a internal (bultin) package
pip2spack codecov --update
```


## Installation
Later, the package will be added into pypi repository.
```
pip install pip2spack
```

## Build
To build a .whl package

```
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
```

Than go to `dist` directory and type

```
pip install pip2spack-0.1-py3-none-any.whl
```

## Run
Before you run the script download a spack and export `SPACK_ROOT`. 

### Create a new package
To run a script, provide a package names:
```
pip2spack {package_names_for_convert}
```

Example for creation one new package:
```
pip2spack jsl 
```

you can also create more than one in single run:
```
pip2spack jsl codecov
```

### Updating existing packages (builtin)
Since v0.2, pip2spack is able to update builtin packages to newest version base on the pypi.org information.

__No more adding a new version thru Spack's Pull Requests!__ 

Just add `--update` arg after the list of packages.

Example:
```
pip2spack codecov --update
```

__Notice:__ You can not to create and update packages at once. These operations are separated (in actual version)


