Skip to content

Commit

Permalink
(temporarily) remove: python version manager
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Dec 27, 2024
1 parent 54422b2 commit 5a7860a
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 422 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Please ensure that your code follows the Rust style conventions. You can use the
When submitting pull requests, please follow the convention of prefixing commit messages with one of the following tags:

- `feat:` for new features (e.g., `feat: add a new cli command for autocompletions`).
- `fix:` for bug fixes (e.g., `fix: resolve issue with Python Version Manager`).
- `fix:` for bug fixes (e.g., `fix: resolve issue with Node Version Manager`).
- `chore:` for minor tasks like refactoring or updating dependencies (e.g., `chore: update dependencies`).
- `docs:` for documentation updates (e.g., `docs: update contributing guidelines`).
- `refactor:` for code restructuring without changing functionality (e.g., `refactor: optimize setup flow`).
Expand Down
32 changes: 2 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# <span style="font-family: 'Arial', sans-serif;">Shuru</span>

A task runner and version manager for Node.js and Python, written in Rust! Shuru simplifies your development workflow by automating tasks and managing language versions.
A task runner and version manager for Node.js, written in Rust! Shuru simplifies your development workflow by automating tasks and managing language versions.

[![Version](https://img.shields.io/badge/version-0.0.26-blue)](https://github.com/shuru-project/shuru/releases)
[![License](https://img.shields.io/badge/license-MIT-lightgrey)](https://opensource.org/licenses/MIT)
Expand All @@ -27,7 +27,6 @@ A task runner and version manager for Node.js and Python, written in Rust! Shuru
- [📚 Usage](#-usage)
- [🛠️ Detailed Examples](#-detailed-examples)
- [Node.js Project](#nodejs-project)
- [Python Project](#python-project)
- [🤝 Community](#-community)
- [📄 License](#-license)
- [🤗 Contributing](#-contributing)
Expand All @@ -37,7 +36,7 @@ A task runner and version manager for Node.js and Python, written in Rust! Shuru
Shuru enhances productivity by offering:

- **🔧 Task Automation**: Define and run tasks effortlessly.
- **🌐 Version Management**: Built-in Node.js and Python version management.
- **🌐 Version Management**: Built-in Node.js version management.
- **💻 Shell Completions**: Enjoy auto-completion in Bash, Zsh, and Fish.

## 🚀 Installation
Expand Down Expand Up @@ -96,33 +95,6 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/shuru-project/shuru/main/i
shuru dev
```

### Python Project

1. Create a `shuru.toml` for your Python project:

```toml
[versions]
python = "3.9.5"

[tasks.install]
command = "pip install -r requirements.txt"

[tasks.run]
command = "python main.py"
```

2. Install dependencies:

```bash
shuru install
```

3. Run your application:

```bash
shuru run
```

## 🤝 Community

Join our community for support and discussions:
Expand Down
18 changes: 0 additions & 18 deletions examples/fullstack-node-python/shuru.toml

This file was deleted.

34 changes: 0 additions & 34 deletions examples/simple-python-app/shuru.toml

This file was deleted.

2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ printf "███████╗███████║██║ ██║█
printf "╚════██║██╔══██║██║ ██║██╔══██╗██║ ██║ ██╔═══╝ ██╔══██╗██║ ██║██ ██║██╔══╝ ██║ ██║ \n"
printf "███████║██║ ██║╚██████╔╝██║ ██║╚██████╔╝ ██║ ██║ ██║╚██████╔╝╚█████╔╝███████╗╚██████╗ ██║ \n"
printf "╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚════╝ ╚══════╝ ╚═════╝ ╚═╝ \n"
printf "${RED}\nShuru Project: A task runner and Node.js/Python version manager written in Rust${NC}\n\n"
printf "${RED}\nShuru Project: A task runner and Node.js version manager written in Rust${NC}\n\n"

ZIP_FILE=""

Expand Down
17 changes: 1 addition & 16 deletions pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<div class="content">
<h2 id="introduction">🌟 Introduction</h2>
<p>A task runner and version manager for Node.js and Python, written in Rust! Shuru simplifies your development workflow by automating tasks and managing language versions.</p>
<p>A task runner and version manager for Node.js, written in Rust! Shuru simplifies your development workflow by automating tasks and managing language versions.</p>
<div class="badges">
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/badge/license-MIT-lightgrey" alt="License Badge">
Expand Down Expand Up @@ -88,21 +88,6 @@ <h3>Node.js Project</h3>
<p>3. Start development:</p>
<code-block>shuru dev</code-block>

<h3>Python Project</h3>
<p>1. Create a <code>shuru.toml</code> for your Python project:</p>
<code-block>[versions]
python = "3.9.5"

[tasks.install]
command = "pip install -r requirements.txt"

[tasks.run]
command = "python main.py"</code-block>
<p>2. Install dependencies:</p>
<code-block>shuru install</code-block>
<p>3. Run your application:</p>
<code-block>shuru run</code-block>

<h2 id="community">🤝 Community</h2>
<p>Join our community for support and discussions:</p>
<a href="https://discord.gg/EtZn7EdDdS">
Expand Down
5 changes: 0 additions & 5 deletions src/tools/version_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ pub use version_validator::VersionValidator;
mod node_version_manager;
pub use node_version_manager::NodeVersionManager;

mod python_version_manager;
pub use python_version_manager::PythonVersionManager;

mod versioned_command;
pub use versioned_command::{deserialize_versions, VersionInfo, VersionedCommand};

Expand All @@ -20,14 +17,12 @@ pub trait VersionManager {
#[derive(Debug)]
pub enum ShuruVersionManager {
Node(NodeVersionManager),
Python(PythonVersionManager),
}

impl ShuruVersionManager {
pub fn install_and_get_binary_path(&self) -> Result<std::path::PathBuf, Error> {
match self {
ShuruVersionManager::Node(manager) => manager.install_and_get_binary_path(),
ShuruVersionManager::Python(manager) => manager.install_and_get_binary_path(),
}
}
}
Loading

0 comments on commit 5a7860a

Please sign in to comment.